//
//  SlideInViewController.m
//  myDemo2
//
//  Created by wuxueying on 5/12/14.
//
//

#import "SlideInViewController.h"
#import "NewViewController.h"

@interface SlideInViewController ()
@end
@implementation SlideInViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (IBAction)addNewView:(id)sender {
    UIStoryboard *storyboard = self.storyboard;
    NewViewController *slideViewController = [storyboard instantiateViewControllerWithIdentifier:NSStringFromClass([NewViewController class])];
    
    slideViewController.slideInDirection = RASlideInDirectionBottomToTop;
    
    self.modalPresentationStyle = UIModalPresentationCurrentContext;
    
    [self presentViewController:slideViewController animated:NO completion:nil];
}

@end
